/**
 * Created by DevilsEyes on 2016/4/14.
 */

//todo 直接打包
module.exports = {
    entry: './main.es6',
    output: {
        filename: 'bundle.js'
    },
    module: {
        loaders: [
            {
                test: /\.es6?$/,
                exclude: /node_modules/,
                loader: 'babel-loader?presets[]=es2015'
            },
            {
                test: /\.vue?$/,
                exclude: /node_modules/,
                loader: 'vue'
            }
        ]
    }
};

//todo webpack-dev-server
// module.exports = {
//     entry: [
//         'webpack-dev-server/client?http://localhost:8080',//资源服务器地址
//         'webpack/hot/only-dev-server',
//         './main.es6'
//     ],
//     output: {
//         publicPath: "http://localhost:8080/",
//         path: './',
//         filename: "bundle.js"
//     },
//     module: {
//         loaders: [
//             {
//                 test: /\.es6?$/,
//                 exclude: /node_modules/,
//                 loader: 'babel-loader?presets[]=es2015'
//             },
//             {
//                 test: /\.vue?$/,
//                 exclude: /node_modules/,
//                 loader: 'vue'
//             }
//         ]
//     }
// };